<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="http://172.19.66.58/arcgis_js_api/library/3.14/dijit/themes/claro/claro.css" />
    <link rel="stylesheet" href="http://172.19.66.58/arcgis_js_api/library/3.14/esri/css/esri.css" />
    <script type="text/javascript">
        dojoConfig = {
            parseOnLoad: true,
            packages: [{
                name: 'tdlib',
                location: "http://172.19.66.58/arcgis_js_api/library/3.14/dojo/js/tdlib"
            }]
        };
    </script>
    <script src="http://172.19.66.58/arcgis_js_api/library/3.14/init.js"></script>
</head>
<body>
<div id="map" style="width: 900px; height: 800px;">

</div>
</body>
<script>





    var map;

    require([
        "esri/map",
        "tdlib/TDTLayer",
        "tdlib/TDTAnnoLayer",
        "esri/layers/FeatureLayer",
        "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/Color",
        "esri/renderers/SimpleRenderer",
        "dojo/domReady!"
    ], function (
        Map, TDTLayer, TDTAnnoLayer, FeatureLayer, SimpleMarkerSymbol,SimpleLineSymbol,Color,SimpleRenderer
    ) {

        map = new Map("map", {
            //basemap: "topo",
            center: [120, 36.5],
            zoom: 8,
            logo:false
        });
        var basemap = new TDTLayer();
        map.addLayer(basemap);
        var annolayer = new TDTAnnoLayer();
        map.addLayer(annolayer);

        // var featureLayer = new FeatureLayer("http://172.19.66.57:6080/arcgis/rest/services/STATION1/MapServer/0", {
        //     mode: FeatureLayer.MODE_SNAPSHOT,
        //     outFields: ["*"],
        //     infoTemplate : new esri.InfoTemplate("${NAME}", "ok")
        // });
        // console.log(featureLayer)
        // var symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
        //     new Color([255,0,0]), 1),new Color([0,255,0,0.25]));
        // featureLayer.setRenderer(new SimpleRenderer(symbol))
        // map.addLayer(featureLayer);

    });
</script>
</html>
